package juegoPlantaVsZombies;

import java.util.List;

public class AlmanaqueZombie {
	
	private List<Zombie> zombies;

	// ------------------------------------------------- //
	// GETTERS Y SETTERS
	
	public List<Zombie> getZombies() {
		return zombies;
	}

	public void setZombies(List<Zombie> zombies) {
		this.zombies = zombies;
	}
	
	// ------------------------------------------------- //
	// METODOS
	
	public Zombie obtenerZombieConNombre(Zombie zombie) {
		Zombie z = null;
		for(Zombie zomb : this.getZombies()){
			if(zomb.getNombre().equals(zomb.getNombre())){
				z = zomb;
			}
		}
		return z;
	}
}
